<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_receip_details.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/V_receip_details.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "收款对账明细报表",
        name: "V_receip_details",
        url: "/VReceipDetails/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: {
        distributorCode: "",
        createDate: "",
        order_number: "",
        childrenNumber: "",
        title: "",
        payMoney: "",
        oStatus: "",
      },
      searchFormOptions: [
        [
          { title: "订单号", field: "order_number", type: "like" },
          {
            title: "子订单号(退款单号)",
            field: "childrenNumber",
            type: "like",
          },
        ],
        [
          { title: "支付时间", field: "createDate", type: "datetime" },
          {
            dataKey: "receip_details",
            data: [],
            title: "状态",
            field: "oStatus",
            type: "select",
          },
        ],
        // [
          // { title: "项目名称", field: "title", type: "like" },
          // { title: "金额", field: "payMoney", type: "like" },
        // ],
        [
          {
            dataKey: "direct_distribution",
            data: [],
            title: "分销商名称",
            field: "distributorCode",
            type: "select",
          },
        ],
      ],
      columns: [
        {
          field: "createDate",
          title: "支付时间",
          type: "datetime",
          width: 120,
          align: "left",
          sortable: true,
        },
        {
          field: "order_number",
          title: "订单号",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "childrenNumber",
          title: "子订单号(退款单号)",
          type: "string",
          width: 140,
          align: "left",
        },
        {
          field: "title",
          title: "项目名称",
          type: "string",
          width: 220,
          align: "left",
        },
        {
          field: "payMoney",
          title: "金额",
          type: "decimal",
          width: 60,
          align: "left",
        },
        {
          field: "oStatus",
          title: "状态",
          type: "string",
          bind: { key: "receip_details", data: [] },
          sort: true,
          width: 60,
          align: "left",
        },
        {
          field: "id",
          title: "id",
          type: "string",
          width: 120,
          hidden: true,
          require: true,
          align: "left",
        },
        {
          field: "distributorCode",
          title: "分销商名称",
          type: "string",
          width: 160,
          align: "left",
          bind: { key: "distributorList", data: [] },
        },
      ],

      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
